package com.hjy.websocket.domain;

import lombok.Data;

@Data
public class WebSocketRequest {

    private String methodName;
    private Object[] args;
    //填空就是发送所有客户端，广播
    private String clientIp;
    private String connId;

    private WebSocketRequest() {
    }

    public static WebSocketRequest create(String methodName, Object[] args , String clientIp) {
        WebSocketRequest request = new WebSocketRequest();
        request.setMethodName(methodName);
        request.setClientIp(clientIp);
        request.setArgs(args);
        return request;
    }



}
